﻿@page "/Admin/Traces"
@using BlazorAdmin.Models
@using BlazorAdmin.Web.Shared.Components
@using BlazorAdmin.Web.Shared.Models

<AdminTable TItem=Trace PageItemsSource="PageItemsSource" SortString=@TraceSortString CustomerSearchModel="TraceSearchModel"
            ShowDefaultButtons=false ShowExtendButtons=false IsPagination=true ShowCardView=false
            OnQueryAsync="OnQueryAsync">
    <TableColumns>
        <TableColumn @bind-Field="context.UserName" Filterable="true" Searchable="true" Sortable="true"></TableColumn>
        <TableColumn @bind-Field="context.RequestUrl" Filterable="true" Searchable="true" Sortable="true"></TableColumn>
        <TableColumn @bind-Field="context.IP" Filterable="true" Searchable="true" Sortable="true"></TableColumn>
        <TableColumn @bind-Field="context.Browser" Filterable="true" Searchable="true" Sortable="true"></TableColumn>
        <TableColumn @bind-Field="context.OS" Filterable="true" Searchable="true" Sortable="true"></TableColumn>
        <TableColumn @bind-Field="context.LogTime" Filterable="true" Searchable="true" Sortable="true" FormatString=@SysConsts.FormatTime></TableColumn>
    </TableColumns>
    <CustomerSearchTemplate>
        @if (context is TraceSearchModel searchModel)
        {
            <TraceSearch @bind-Value="@searchModel"></TraceSearch>
        }
    </CustomerSearchTemplate>
</AdminTable>
